home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ccdl150e.zip / STDDEF.H < prev    next >
C/C++ Source or Header  |  1996-06-11  |  454b  |  30 lines

  1. /*  stddef.h  
  2.  
  3.     Definitions for common types, and NULL
  4.  
  5. */
  6.  
  7. #ifndef __STDDEF_H
  8. #define __STDDEF_H
  9.  
  10. #define NULL 0
  11.  
  12.  
  13. #ifndef _PTRDIFF_T
  14. #define _PTRDIFF_T
  15. typedef long    ptrdiff_t;
  16. #endif
  17.  
  18. #ifndef _SIZE_T
  19. #define _SIZE_T
  20. typedef unsigned size_t;
  21. #endif
  22.  
  23. #define offsetof( s_name, m_name )  (size_t)&(((s_name _FAR *)0)->m_name)
  24.  
  25. #ifndef _WCHAR_T
  26. #define _WCHAR_T
  27. typedef unsigned wchar_t;
  28. #endif
  29.  
  30. #endif  /* __STDDEF_H */